package com.itheima.manager;

import com.itheima.domain.OmsOrderSetting;
import com.itheima.service.db.OrderSettingService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class OmsOrderSettingManager {

    @DubboReference
    OrderSettingService orderSettingService;

    public void updateSetting(long id, OmsOrderSetting orderSetting) {
        orderSettingService.updateSetting(id,orderSetting);
    }

    public OmsOrderSetting getSetting(long id) {
        OmsOrderSetting orderSetting = orderSettingService.getSetting(id);
        return orderSetting;
    }
}
